package com.chenshu.shop.mapper;

import com.chenshu.shop.model.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2024-06-04
 * Time：13:55
 */
@Mapper
public interface AdminMapper {
    public Admin selectAdminByUsername(String username);
    public Integer addAdmin(@Param("username") String username, @Param("password") String password);

    public List<Admin> selectAllAdmins();

    public int deleteAdmin(Integer adminId);

    public Integer updateAdminPassword(@Param("id") Integer id, @Param("password") String password);
}
